<?php 
session_start();
require_once('Conection_DataBase.php');
mysql_select_db($database_jssue, $jssue);
$idAsig = $_GET['Cli1'];
$_SESSION['Carre'] = $idAsig;
$Querry_recordSet = "select * from cllg_assign_detail where FK_ASSIGN = '$idAsig'";
$recordset = mysql_query($Querry_recordSet, $jssue) or die(mysql_error());
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cursos Aprobados</title>
</head>

<body>

<form id="form1" name="form1" method="post" action="">
  <table width="475" border="0">
    <tr>
      <td colspan="2"></td>
    </tr>
    <tr>
      <td colspan="2"><legend>Seleccione el Curso</legend></td>
    </tr>
    
     <?php 
		  		while ($prueba=mysql_fetch_assoc($recordset)){
					$curso = $prueba['FK_COURSE'];
					$Querry_recordSet77 = "select * from cllg_courses_catalog where CODE = '$curso'";
					$recordset77 = mysql_query($Querry_recordSet77, $jssue) or die(mysql_error());
		   	   		$prueba77=mysql_fetch_assoc($recordset77);
			   ?>
    <tr>
      <td width="238" align="left" id="NvoMov"><?php echo $prueba77['NAME'];?></td>
      <td width="119" align="center" id="NvoMov"><a href=""> <input type="image" src="./images/accept.png" title="SELECCIONAR" alt="SELECCIONAR" name="button2" id="button2" onclick="javascript:report12('<?=$prueba77['CODE']?>')"/></a></td>
    </tr>
	<?php }?>
  </table>
</form>
</body>
</html>
